package org.fioma.tree.suffixTree.memory;

import org.fioma.tree.bytes.LabelRefBytes;

public class FinalSuffixRootMemory extends FinalInternalSuffixNodeMemory {

	public FinalSuffixRootMemory(SuffixNodeFactoryMemory<LabelRefBytes, FinalInternalSuffixNodeMemory, FinalLeafSuffixNodeMemory> memory, long pos) {
		super(memory, pos);
	}

	@Override
	public FinalInternalSuffixNodeMemory getParent() {
		return null;
	}

	@Override
	public void setParent(FinalInternalSuffixNodeMemory parent) {
		throw new RuntimeException("Root node can not be child.");
	}

	@Override
	public LabelRefBytes getLabel() {
		return null;
	}

	@Override
	public void setLabel(LabelRefBytes label) {
		throw new RuntimeException("Root node can not have label.");
	}

}
